﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en" th:replace="main/public :: #public_head"></head>
<body>
<!--头部-->
<header class="publicHeader" th:replace="main/public :: #public_header">
</header>
<!--时间-->
<section class="publicTime" th:replace="main/public :: #public_time"></section>
<!--主体内容-->
<section class="publicMian ">
    <div class="left" th:replace="main/public :: #public_left(activeUri='provider')">
    </div>
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>供应商管理页面 >> 供应商修改页</span>
        </div>
        <div class="providerAdd">
            <form id="updateProvider" th:action="@{/provider}" th:method="post">
                <!--div的class 为error是验证错误，ok是验证成功-->
                <input th:type="hidden" name="_method" value="put"/>
                <input th:type="hidden" th:value="${provider.pid}" name="pid"/>
                <div class="">
                    <label for="providerName">供应商名称：</label>
                    <input type="text" th:value="${provider.providerName}" name="providerName" id="providerName" placeholder="请输入供应商名称"/>
                    <span >*</span>
                </div>
                <div>
                    <label for="people">联系人：</label>
                    <input type="text" th:value="${provider.people}" name="people" id="people" placeholder="请输入联系人姓名"/>
                    <span>*</span>

                </div>
                <div>
                    <label for="phone">联系电话：</label>
                    <input type="text" th:value="${provider.phone}" name="phone" id="phone" placeholder="请输入联系电话"/>
                    <span></span>
                </div>
                <div>
                    <label for="address">联系地址：</label>
                    <input type="text" th:value="${provider.address}" name="address" id="address" placeholder="请输入联系地址"/>
                    <span></span>

                </div>
                <div>
                    <label for="fax">传真：</label>
                    <input type="text" th:value="${provider.fax}" name="fax" id="fax" placeholder="请输入传真"/>
                    <span></span>

                </div>
                <div>
                    <label for="describe">描述：</label>
                    <input type="text" th:value="${provider.description}" name="describe" id="describe" placeholder="请输入描述"/>
                    <span></span>

                </div>
                <div class="providerAddBtn">
                    <!--<a href="#">保存</a>-->

                    <input type="button" value="保存" onclick="$('#updateProvider').submit()"/>
                    <a th:href="@{/provider/providerList}" href="providerList.html">返回</a>
                </div>
            </form>
        </div>

    </div>
</section>
<footer class="footer" th:replace="main/public :: #public_footer">
</footer>
<script src="../js/jquery.js"></script>
<!--
	<script src="js/time.js"></script>
	-->
</body>
</html>